package com.ambow.core.service.impl;

import com.ambow.core.mapper.DqRoleMapper;
import com.ambow.core.po.DqUser;
import com.ambow.core.mapper.DqUserMapper;
import com.ambow.core.service.DqUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author dq
 * @since 2022-09-05
 */
@Service
public class DqUserServiceImpl extends ServiceImpl<DqUserMapper, DqUser> implements DqUserService {

    @Autowired
    private DqUserMapper dqUserMapper;
    //根据roleid获取user
    public DqUser findUserByRoleId(Integer roleId){return dqUserMapper.findUserByRoleId(roleId);}
    //
    public Integer findAttributeByRoleId(Integer roleId){
        return dqUserMapper.findAttributeByRoleId(roleId);
    }
}
